package com.chenfan.magic.interpreter;

import java.util.Map;

/**
 * @author 周夕
 * @date 2020-02-26 14:31
 */
public interface __IInterpreter {

    public static final String HANDER_NAME = "handler";

    /**
     * run
     * @param idcRuntimePool
     * @param code
     * @param paramMap
     * @return
     */
    Object run(Map<String, Object> idcRuntimePool, String code, Map<String, Object> paramMap);

    /**
     * run
     * @param idcRuntimePool
     * @param expression
     * @param defaultValue
     * @return
     */
    Object run(Map<String, Object> idcRuntimePool, String expression, String defaultValue);
}
